import {
	createApp
} from 'vue'
import {
	createPinia
} from 'pinia' //引入pinia
import ElementPlus from 'element-plus'; //element-plus组件
import 'element-plus/dist/index.css'; // element-plus样式文件（必须引入）
import App from './App.vue'
import router from './router'; //路由组件
import {
	elementPlusLocale
} from '@/utils/i18n.js'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia();
const app = createApp(App);
pinia.use(piniaPluginPersistedstate);
app.use(router);
app.use(ElementPlus, elementPlusLocale);
app.use(pinia);
app.mount('#app');